package com.umpay.privi.model.sys;

import java.io.Serializable;
import com.umpay.privi.util.ObjectUtil;
import com.umpay.privi.util.StringUtil;

public class RolePrivi implements Serializable {

	private static final long serialVersionUID = 1L;
			
	public static final String ROLEID = "roleId";
			
	public static final String PRIVILEGEID = "privilegeId";
		
	//角色ID;	
	private Integer roleId;
	//权限ID;	
	private Integer privilegeId;
	//授权等级(1:使用权限;2:授权权限;3:自由权限);	
	private Short level;
	//"0 可用 1 删除";	
	private Short flag;
	
	public void trim(){
		StringUtil.trimObjectFields(this);
	}
	
	@Override
	public String toString() {
		return ObjectUtil.object2LogStr(this);
	}
			
	public Integer getRoleId(){
		return roleId;
	}
			
	public Integer getPrivilegeId(){
		return privilegeId;
	}
			
	public Short getLevel(){
		return level;
	}
			
	public Short getFlag(){
		return flag;
	}
		
				
	public void setRoleId(Integer roleId){
		this.roleId = roleId;
	}
		
	public void setPrivilegeId(Integer privilegeId){
		this.privilegeId = privilegeId;
	}
		
	public void setLevel(Short level){
		this.level = level;
	}
		
	public void setFlag(Short flag){
		this.flag = flag;
	}
}